package br.com.rafaelSys.list;

import javax.persistence.EntityManager;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.framework.EntityQuery;

import br.com.rafaelSys.entidades.Ativo;

@Name("ativoList")
@Scope(ScopeType.EVENT)
public class AtivoList extends EntityQuery<Ativo> {
	
	@In
	private EntityManager entityManager;
			
	private static final long serialVersionUID = -8317902333292458406L;

	private static final String EJBQL = "select a from Ativo a";

//	private static final String[] RESTRICTIONS = {};

	private Ativo ativo = new Ativo();

	public AtivoList() {
		setEntityManager(entityManager);
		setEjbql(EJBQL);
//		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Ativo getAtivo() {
		return ativo;
	}

}
